<template>
  <uni-nav-bar title="充值成功" left-icon="left" @clickLeft="navBack" :fixed="true" statusBar></uni-nav-bar>
  <view class="package column" style="padding-bottom: 40rpx;">
    <uni-icons type="checkbox-filled" size="100" color="#1D8DFF"></uni-icons>
    <view style="font-size: 60rpx;">{{money}}</view>
    <view>恭喜您，充值成功</view>
    <view class="but" @click="redirectTo('fleet/money/invoice?id='+orderID)">申请发票</view>
  </view>
</template>

<script setup lang="ts">
  import { navBack, redirectTo } from '@/utils/navigator';
  import { ref } from 'vue';
  import { onLoad } from '@dcloudio/uni-app';
  const money = ref('')
  const orderID = ref('')
  onLoad((pearm) => {
    money.value = pearm.money
    orderID.value = pearm.orderID
  })
</script>

<style scoped lang="less">
  .but {
    width: 164rpx;
    height: 53rpx;
    border: 1px solid #333333;
    border-radius: 5px;
    text-align: center;
    line-height: 53rpx;
    margin-top: 60rpx;
  }
</style>